package org.example.stock.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tds
 * @version 1.0.0
 * @Company
 * @ClassName OrderController
 * @Description TODO（这里用一句话描述这个类的作用)
 * @Date 2023-04-12 21:46
 */
@RestController
@RequestMapping("/stock")
public class StockController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/deduct")
    public String deduct() {
        return "减库存成功" + port;
    }
}
